package com.study.controller;

import com.study.pojo.resp.ResultMessage;
import com.study.service.QuestionDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/questionDay")
public class QuestionDayController {
    @Autowired
    QuestionDayService questionDayService;

    @RequestMapping("/randomFive")
    public ResultMessage randomFive(HttpServletRequest request){
        return questionDayService.randomFive(request);
    }

}
